package com.test;

import java.util.Random;

public class Array1 {
    public static void main(String[] args) {
        int[] Array={1,2,3,4,5};
        for (int i = 0; i < 5; i++) {
            int temp;
            Random r=new Random();
            int j=r.nextInt(5);
            temp=Array[j];
            Array[j]=Array[i];
            Array[i]=temp;
        }
        for (int i = 0; i < 5; i++) {
            System.out.print(Array[i]+" ");
        }


    }
}
